<template>
  <div class="content-layout">
    <nav-crumbs :model-name="modelName" @search="searchHandel"></nav-crumbs>
    <div class="content-panel">
      <slot/>
    </div>
  </div>
</template>

<script>
import NavCrumbs from '../components/NavCrumbs.vue'

export default {
  components: {
    NavCrumbs
  },
  props: {
    modelName: {
      type: String,
      default: ''
    }
  },
  methods: {
    searchHandel(value) {
      this.$emit('search', value)
    }
  }
}
</script>

<style lang="scss" scoped>
  .content-panel{
    height: calc(100vh - 134px);
    overflow: auto;
  }
</style>